import service from "@/utils/request";

export type Result = {
    code: number;
    msg?: string;
    data?: any;
}

export function login(data?: any): Promise<any> {
    return service.request<Result>({method: "post", url: "/login", data: data});
}